import type { RouteRecordRaw } from 'vue-router'
import type { Store } from 'pinia'

export interface UserInfo {
  username: string;
  avatar: string;
  roles: string[];
}

export interface UserState {
  token: string;
  userInfo: UserInfo | null;
  routes: RouteRecordRaw[];
  menuList: RouteRecordRaw[];
}

export type UserStore = Store<'user', UserState> 